<?php

use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;

class Pagepost extends Eloquent implements UserInterface, RemindableInterface {

	use UserTrait, RemindableTrait;
	
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'pageposts';
	public $timestamps = true;

	public static function showFbPostTypeIcon($type = '') {
		if($type === '') return $type;
		switch($type) {
			case 'photo' :
				return '<span class="glyphicon glyphicon-picture" aria-hidden="true" title="Photo"></span>';
			break;
			case 'video' :
				return '<span class="glyphicon glyphicon-film" aria-hidden="true" title="Video"></span>';
			break;
			case 'new-window' :
				return '<span class="glyphicon glyphicon-new-window" aria-hidden="true" title="Open in new window"></span>';
			break;
			default :
				return '<span class="glyphicon glyphicon-file" aria-hidden="true"></span>';
			break;
		}
	}

	public static function getUidInteract() {
		
	}
}
